package com.adfframeworks.labs.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.adfframeworks.labs.domain.Employee;

public class EmployeeMapper implements RowMapper {

	@Override
	public Employee mapRow(ResultSet rs, int rowNum) throws SQLException {
		Employee employee = new Employee();
		employee.setId(rs.getInt("Employee_ID"));
		employee.setFirstName(rs.getString("First_Name"));
		employee.setLastName(rs.getString("Last_Name"));
		employee.setEmailAddress(rs.getString("Email_Address"));
		employee.setPassword(rs.getString("Password"));
		employee.setType(rs.getInt("Emp_Type"));
		return employee;
	}
}